#include "TCPClient.h"

#include "Containers/String.h"
#include "Containers/String8.h"


//only supoort utf8 string
CString8 CTCPClient::ConvertDataToString8(const TVector<uint8_t>& InData)
{
    TVector<uint8_t> Data=InData;
    Data.Add(u8'\0');
    return CString8((char8_t*)Data.Data());
}

//only supoort utf8 string
CString CTCPClient::ConvertDataToString(const TVector<uint8_t>& InData)
{
    TVector<uint8_t> Data=InData;
    Data.Add(u8'\0');
    return CString((char8_t*)Data.Data());  
}